//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package javax.vpncrypto.spec;

import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.MGF1ParameterSpec;
import javax.vpncrypto.spec.PSource.PSpecified;

public class OAEPParameterSpec implements AlgorithmParameterSpec {
    private String mdName = "SHA-1";
    private String mgfName = "MGF1";
    private AlgorithmParameterSpec mgfSpec;
    private javax.vpncrypto.spec.PSource pSrc;
    public static final OAEPParameterSpec DEFAULT = new OAEPParameterSpec();

    private OAEPParameterSpec() {
        this.mgfSpec = MGF1ParameterSpec.SHA1;
        this.pSrc = PSpecified.DEFAULT;
    }

    public OAEPParameterSpec(String var1, String var2, AlgorithmParameterSpec var3, javax.vpncrypto.spec.PSource var4) {
        this.mgfSpec = MGF1ParameterSpec.SHA1;
        this.pSrc = PSpecified.DEFAULT;
        if (var1 == null) {
            throw new NullPointerException("digest algorithm is null");
        } else if (var2 == null) {
            throw new NullPointerException("mask generation function algorithm is null");
        } else if (var4 == null) {
            throw new NullPointerException("source of the encoding input is null");
        } else {
            this.mdName = var1;
            this.mgfName = var2;
            this.mgfSpec = var3;
            this.pSrc = var4;
        }
    }

    public String getDigestAlgorithm() {
        return this.mdName;
    }

    public String getMGFAlgorithm() {
        return this.mgfName;
    }

    public AlgorithmParameterSpec getMGFParameters() {
        return this.mgfSpec;
    }

    public PSource getPSource() {
        return this.pSrc;
    }
}
